﻿#pragma once
#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)

#include<stdio.h>
#include<locale.h>//设置环境


#define White 1
#define Black 2
#define Playerchess L"⭕"
#define Computerchess L"●"
#define ROL 15
#define COL 15


void GameStart(int chessBoard[ROL][COL]);
//初始化
void InitGame();
void PrintBoard(int chessBoard[ROL][COL]);
void Print(int type, char* wall);
//更新游戏界面
void UpDate(int chessBoard[ROL][COL]);


//菜单界面
void menu();
void menu1();


//电脑回合
void ComputerTurn(int chessBoard[ROL][COL]);
//玩家回合
void PlayerTurn(int chessBoard[ROL][COL],int flg);



void SetChess(int chessBoard[ROL][COL],int flg);
//定位鼠标
void SetPos(int x, int y);

//检查类
int CheckPos(int x, int y);
int CheckChess(int chessBoard[ROL][COL], int x, int y);